<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSmallBlackFishPushersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('small_black_fish_pushers', function (Blueprint $table) {
            $table->charset = 'utf8';
            $table->collation = 'utf8_general_ci';
            $table->comment = '小黑鱼连登推送';
            $table->increments('id');
            $table->string('name',255)->comment('连登用户名');
            $table->char('phone_num',11)->comment('连登用户手机号');
            $table->unsignedInteger('pusher_timestamp')->comment('推送时间');
            $table->char('sign',88)->comment('请求签名');
            $table->string('order_num',255)->comment('数据核对时使用的订单号');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('small_black_fish_pushers');
    }
}
